<?php
class TagsWidget extends CWidget
{
    public $key='';
    public $name='';
    public $content='';

    public function init()
    {
        parent::init();
    }

    public function run()
    {
        $key=$this->key;
        $name=$this->name;
        $content=$this->content;
        $content=implode(',', $content);
        $this->render('tags',compact('name','content','key'));
    }
}
?>
